package com.abc.cloud.service;

import com.abc.cloud.dto.im.GroupResp;
import com.abc.cloud.vo.im.AdminUpdateGroupReq;
import com.baomidou.mybatisplus.extension.service.IService;
import com.abc.cloud.common.utils.PageUtil;
import com.abc.cloud.entity.GroupEntity;

import java.util.List;
import java.util.Map;

/**
 * 分组表
 *
 * @author LiJunXi
 * @email 2770063826@qq.com
 * @date 2023-11-29 13:19:41
 */
public interface GroupService extends IService<GroupEntity> {

    PageUtil queryPage(Map<String, Object> params);

    List<GroupResp> listByUserId(Long userId);

    void saveGroup(Long userId, String name);

    void updateById(Long userId, Long id, String name, Integer status);

    PageUtil adminGroupList(Map<String, Object> params);

    void adminUpdateGroup(AdminUpdateGroupReq adminUpdateGroupReq);

    void adminDeleteGroup(List<Long> ids, Integer status);
}

